import $http from './http';
// 获取个人信息
export function getPersonalInfo(data) {
    return $http({
        url: `/rest/docs/getCurrentUser`,
        method: "post",
        data
    })
}
// 主网站首页查询全部的栏目新闻数据
export function getAllColumns() {
    return $http({
        url: `/rest/newsPortal/getAllColumns`,
    });
}
// 新建新闻
export function newsEdit(data) {
    return $http({
        url: `/newsData.do`,
        data,
        method: 'post',
    });
}
// 删除新闻数据
export function newsDataManager(data) {
    return $http({
        url: `/ajax.do?method=ajaxAction&managerName=newsDataManager&rnd=86372`,
        data,
        method: 'post',
        contentType: 'application/x-www-form-urlencoded',
    });
}
// 查询单条数据
export function flowSheetById(data) {
    return $http({
        url: `/rest/workflowModule/flowSheetById`,
        data,
        method: 'post',
    });
}
// 查询单条数据
export function findNameplate(data) {
    return $http({
        url: `/rest/workflowModule/findNameplate`,
        data,
        method: 'post',
    });
}
// 获取知识库分类树
export function ListTo2(data) {
    return $http({
        url: `/rest/workflowModule/ListTo2`,
        data,
        method: 'post',
    });
}
// 获取知识库分类树
export function typeListTo2(data) {
    return $http({
        url: `/rest/workflowModule/typeListTo2`,
        data,
        method: 'post',
    });
}
// 获取知识库分类树
export function typeList() {
    return $http({
        url: `/rest/workflowModule/typeList`,
        method: 'post',
    });
}
// 获取分类设置列表
export function workflowList() {
    return $http({
        url: `/rest/workflowModule/list`,
        method: 'get',
    });
}
// 新增分类设置
export function newsTypeSave(data) {
    return $http({
        url: `/newsType.do?method=save&isGroup=false`,
        data,
        method: 'post',
    });
}
// 删除分类
export function newsTypeDelete(data) {
    return $http({
        url: `/newsType.do?method=delete&isGroup=false&spaceType=&spaceId=&id=${data}`,
    });
}
// 获取流程图列表
export function listByMange(data) {
    return $http({
        url: `/rest/workflowModule/listByMange`,
        data,
        method: 'post',
    });
}
// 获取铭牌信息
export function findLatestTime() {
    return $http({
        url: `/rest/workflowModule/findLatestTime`,
    });
}
